net: Unregister net_default_ip and net_default_mac variables hooks on unload
authorB Horn <b@horn.uk>
Thu, 28 Nov 2024 04:05:04 +0000 (04:05 +0000)
committerFelix Zielcke <fzielcke@z-51.de>
Wed, 11 Jun 2025 15:42:34 +0000 (17:42 +0200)
commit382db81cf904fe2adc19dccb6f4b230369416493
tree0ffcecc14f87ab57f75ff8b6b614aa9a9a20d12a
parentbd056223de143e15958b2d39dd71ef9dc3723968
net: Unregister net_default_ip and net_default_mac variables hooks on unload

The net module is a dependency of normal. So, it shouldn't be possible
to unload the net. Though unregister variables hooks as a precaution.
It also gets in line with unregistering the other net module hooks.

Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name net-Unregister-net_default_ip-and-net_default_mac-variabl.patch
grub-core/net/net.c